home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ 12⁄31⁄89 / 0274-IRes; NIL vs ItsDocu-Dec89 < prev    next >
Encoding:
Text File  |  1990-01-02  |  972 b   |  28 lines  |  [TEXT/GEOL]

  1. Item    5101555                         27-Dec-89        10:30
  2.  
  3. From:   D1165                           Esha, David C Hands,PRT
  4.  
  5. To:     MACAPP.TECH$                    MacApp Technical
  6.  
  7. Sub:    IRes; NIL vs ItsDocument?
  8.  
  9. Hello,
  10.  
  11. When creating a window via NewTemplateWindow one of the paramaters is
  12. "itsDocument", which is passed along to subviews thru IRes and IView eventually
  13. to be assigned directly to the fDocument field of TView.  But for many classes,
  14. especially TControl decendants, MacApp will ignore itsDocument parameter and
  15. instead pass IRes NIL.  The result being that the subview is not added to the
  16. documents subview list.
  17.  
  18. It appears that printing is the only reason MacApp uses the subview list.  So
  19. should one pass itsDocument for views to be printed and NIL otherwise?  Are
  20. there other reasons for not wanting to pass a valid document reference to IRes
  21. or for not wanting all subviews in the subview list?
  22.  
  23. Thanks.
  24.  
  25. David Hands
  26. ESHA Research
  27.  
  28.